package com.validateCodeYzm.zpf.lib;

import com.github.kevinsawicki.http.HttpRequest;

import java.net.HttpURLConnection;

public class TempProxyHttpRequest extends HttpRequest {

    private HttpURLConnection httpURLConnection;

    public TempProxyHttpRequest(HttpURLConnection httpURLConnection){
        super("http://test.com","GET");
        this.httpURLConnection = httpURLConnection;
    }

    @Override
    public HttpRequest header(String name,String value){
        httpURLConnection.setRequestProperty(name,value);
        return this;
    }

}
